package com.demo.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * @author wangfengchen
 */
@RefreshScope
@ConfigurationProperties(prefix = "email")
public class EmailProperties {

  /**
   * 发送邮件服务器
   */
  private String host;
  /**
   * 发送邮件的邮箱地址
   */
  private String username;
  /**
   * 企业邮箱是密码，qq和网易是授权码
   */
  private String password;
  /**
   * 默认编码
   */
  private String defaultEncoding;
  /**
   * 多个收件人用英文逗号隔开，不写就不发送
   */
  private String[] to;
  /**
   * 多个抄送人用英文逗号隔开
   */
  private String[] cc;
  /**
   * 多个密送人用英文逗号隔开
   */
  private String[] bcc;

  public String getHost() {
    return host;
  }

  public void setHost(String host) {
    this.host = host;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getDefaultEncoding() {
    return defaultEncoding;
  }

  public void setDefaultEncoding(String defaultEncoding) {
    this.defaultEncoding = defaultEncoding;
  }

  public String[] getTo() {
    return to;
  }

  public void setTo(String[] to) {
    this.to = to;
  }

  public String[] getCc() {
    return cc;
  }

  public void setCc(String[] cc) {
    this.cc = cc;
  }

  public String[] getBcc() {
    return bcc;
  }

  public void setBcc(String[] bcc) {
    this.bcc = bcc;
  }
}